package PriorityQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-09-17
 * Time: 10:27
 */
public class Test {
    public static void main(String[] args) {
        int[] array = { 27,15,19,18,28,34,65,49,25,37 };
        TestHeap testHeap = new TestHeap();
        /*for (int i = 0; i < array.length; i++) {
            testHeap.offer(array[i]);
        }*/

        testHeap.initElem(array);

        testHeap.createHeap();

        /*testHeap.offer(80);

        testHeap.poll();*/

        testHeap.heapSort();
    }

}
